package es.cursojavaee.jaxws.biblioteca;

import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;

import es.cursojavaee.jaxws.biblioteca.model.Libro;

@WebService
@SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use = SOAPBinding.Use.LITERAL)
public interface IBibliotecaWebService {

    /**
     * @param id
     * @return
     */
    @WebResult(name = "libroResult")
    Libro buscar(@WebParam(name = "id") Long id);

    /**
     * @param libro
     * @return
     */
    @WebResult(name = "libroResult")
    Libro alta(@WebParam(name = "libro") Libro libro);

    /**
     * @param libro
     */
    void modifica(@WebParam(name = "libro") Libro libro);
}
